package com.lineage.server.serverpackets;

public class S_ClanUpdate extends ServerBasePacket {
  private byte[] _byte;
  
  public S_ClanUpdate(int objid, String Clanname, int rank) {
    this._byte = null;
    writeC(72);
    writeD(objid);
    writeS(Clanname);
    writeS(null);
    writeD(0);
    writeC(rank);
  }
  
  public S_ClanUpdate(int objid) {
    this._byte = null;
    writeC(72);
    writeD(objid);
    writeS(null);
    writeS(null);
    writeD(0);
    writeC(0);
  }
  
  public byte[] getContent() {
    if (this._byte == null)
      this._byte = getBytes(); 
    return this._byte;
  }
  
  public String getType() {
    return getClass().getSimpleName();
  }
}
